package cn.qiba.sms.db.dao;

import cn.qiba.sms.db.entity.SmsInfo;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.JpaSpecificationExecutor;
import org.springframework.data.jpa.repository.Query;
import org.springframework.data.repository.PagingAndSortingRepository;
import org.springframework.stereotype.Component;

import java.util.Date;

public interface SmsInfoRepository extends PagingAndSortingRepository<SmsInfo, Long>,JpaSpecificationExecutor<SmsInfo> {

    long countByStatus(String status);
    long countByCreateTimeBetween(Date beginTime,Date endTime);

}
